package com.lovo.pis.utils;

import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

import java.time.LocalDate;

@Component
public class DataChange implements Converter<String,LocalDate> {

    @Override
    public LocalDate convert(String source) {
        LocalDate l = null;
        if (source!=null && source!="")
            l =LocalDate.parse(source);
        return l;
    }


}